package com.green.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * Created with IntelliJ IDEA.
 * @Author: Green
 * @Date: 2021/11/19/17:13
 * @Description: 
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bus_salesback")
public class Salesback implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "customerid")
    private Integer customerid;

    @TableField(exist = false)
    private String customername;

    @TableField(value = "paytype")
    private String paytype;

    @TableField(value = "salesbacktime")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date salesbacktime;

    @TableField(value = "salebackprice")
    private Double salebackprice;

    @TableField(value = "operateperson")
    private String operateperson;

    @TableField(value = "number")
    private Integer number;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "salesid")
    private Integer salesid;

    @TableField(value = "goodsid")
    private Integer goodsid;

    @TableField(value = "projectid")
    private Integer projectid;

    @TableField(exist = false)
    private String goodsname;

    @TableField(exist = false)
    private String size;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CUSTOMERID = "customerid";

    public static final String COL_PAYTYPE = "paytype";

    public static final String COL_SALESBACKTIME = "salesbacktime";

    public static final String COL_SALEBACKPRICE = "salebackprice";

    public static final String COL_OPERATEPERSON = "operateperson";

    public static final String COL_NUMBER = "number";

    public static final String COL_REMARK = "remark";

    public static final String COL_SALESID = "salesid";

    public static final String COL_GOODSID = "goodsid";
}